home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
SourceCode
/
ObserveTest
/
Controller.m
< prev
next >
Wrap
Text File
|
1992-12-19
|
1KB
|
45 lines
/* Generated by Interface Builder */
#import "Controller.h"
#import "ObserveDispatch.h"
#import <appkit/Application.h>
@implementation Controller
- init
{
[super init];
[NXApp setDelegate:self];
return self;
}
/*
Method: appDidInit:
By the time we get here, we can assume that all the nib instantiation
stuff has happened so that we can safely assume that all the instance
variables have been set.
*/
- appDidInit:sender
{
printf("AppDidInit:\n");
// The following three lines make sure that setIntValue: will be called
// on each of the observing cells whenever the main cell takes a new
// int value from the slider.
[mainCell addObserver:cell1 forAction:"takeIntValueFrom:"];
[mainCell addObserver:cell2 forAction:"takeIntValueFrom:"];
[mainCell addObserver:cell3 forAction:"takeIntValueFrom:"];
/*
[mainCell addObserver:cell1 forAction:"setIntValue:"];
[mainCell addObserver:cell2 forAction:"setIntValue:"];
[mainCell addObserver:cell3 forAction:"setIntValue:"];
*/
return self;
}
@end